package com.java1412.goods.service.impl;

import com.java1412.common.entity.Goods;
import com.java1412.goods.mapper.GoodsMapper;
import com.java1412.goods.service.GoodsService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @author java1412
 * @since 2024-04-23 16:44:58
 */
@Service
@Transactional
public class GoodsServiceImpl implements GoodsService {

    @Resource
    private GoodsMapper goodsMapper;

    @Override
    public Goods findById(Integer goodsId) {
        return goodsMapper.findById(goodsId);
    }
}
